package org.monkey.socket.plugin.entity;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "websocket",ignoreInvalidFields = true)
public class WebSocketProperties {
  private String nacosName = "netty-websocket";
  private boolean enable = true;
  private String host = "localhost"; // 监听地址
  private Integer port = 8081; // 监听端口
  private String path = "/ws"; // 请求路径
  private Integer boss = 10;
  private Integer work = 10;
}